package com.dibang.app.operation.provider;

import com.dibang.app.mvp.abs.AbsProvider;
import com.dibang.app.mvp.abs.BeanFactory;
import com.dibang.app.operation.model.abs.LoginModel;
import com.dibang.app.operation.model.impl.LoginModelImpl;
import com.dibang.app.operation.presenter.abs.LoginPresenter;
import com.dibang.app.operation.presenter.impl.LoginPresenterImpl;
import com.dibang.app.operation.view.abs.LoginView;
import com.dibang.app.operation.view.impl.LoginViewImpl;

/**
 * Created by wxl on 2019/7/16.
 */

public class LoginProImpl extends AbsProvider<LoginView,LoginPresenter,LoginModel> {
    @Override
    public LoginView getView() {
        return BeanFactory.getInstance(LoginViewImpl.class);
    }

    @Override
    public LoginPresenter getPresenter() {
        return BeanFactory.getInstance(LoginPresenterImpl.class);
    }

    @Override
    public LoginModel getModel() {
        return BeanFactory.getInstance(LoginModelImpl.class);
    }

    @Override
    public void onDestroy() {
        BeanFactory.remove(LoginViewImpl.class,LoginPresenterImpl.class,LoginModelImpl.class);
    }
}
